#ifndef VIDEOFFMPEG_H
#define VIDEOFFMPEG_H

extern "C" {
#include <libavutil/frame.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/imgutils.h>
#include <libavutil/opt.h>
#include <libavutil/mathematics.h>
#include <libavutil/samplefmt.h>
}

namespace VideoFfmpeg
{
    void init(void);
    void play(unsigned char* pbuff_in,int nwidth,int nheight);
    void release(void);
    bool YV12ToBGR24_FFmpeg(unsigned char* pYUV,unsigned char* pBGR24,int width,int height);
}
#endif // VIDEOFFMPEG_H
